//
//  daitudeViewController.m
//  wuyeviewcon
//
//  Created by dsdf on 16/1/18.
//  Copyright © 2016年 joey. All rights reserved.
//

#import "daitudeViewController.h"

@interface daitudeViewController ()

@end

@implementation daitudeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    UIButton *button=[[UIButton alloc]init];
    button.frame=CGRectMake(0, 0, 375, 64);
    button.backgroundColor=[UIColor colorWithRed: 230/255.0 green:55/255.0 blue:55/255.0 alpha:1.0];
    [self.view addSubview:button];
    
    
    UILabel *labletext=[[UILabel alloc]init];
    labletext.frame=CGRectMake(155, 34, 66, 14);
    labletext.text=@"调查问卷";
    labletext.adjustsFontSizeToFitWidth=YES;
    labletext.textColor=[UIColor whiteColor] ;
    [self.view addSubview:labletext];
    
    
    
    UIButton *button1=[[UIButton alloc]init ];//]WithFrame:CGRectMake(50, 50, 20, 20)];
    button1.frame=CGRectMake(22, 35, 20, 20);
    [button1 setBackgroundImage:[UIImage imageNamed:@"return@2x.png"] forState:UIControlStateNormal];
    [button1 addTarget:self action:@selector(fanhui:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button1];
    
    
    
    UIButton *checkbox10 = [UIButton buttonWithType:UIButtonTypeCustom];
    
    checkbox10.frame=CGRectMake(25 ,275,15,15);
    
    [checkbox10 setImage:[UIImage imageNamed:@"fang未勾选状态1@2x.png"] forState:UIControlStateNormal];
    [checkbox10 setImage:[UIImage imageNamed:@"fang勾选状态1@2x.png"] forState:UIControlStateSelected];
    [checkbox10 addTarget:self action:@selector(checkboxClick:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:checkbox10];
    
    
    
    
    UIButton *checkbox11 = [UIButton buttonWithType:UIButtonTypeCustom];
    
    checkbox11.frame=CGRectMake(25 ,404,15,15);
    
    [checkbox11 setImage:[UIImage imageNamed:@"fang未勾选状态1@2x.png"] forState:UIControlStateNormal];
    [checkbox11 setImage:[UIImage imageNamed:@"fang勾选状态1@2x.png"] forState:UIControlStateSelected];
    [checkbox11 addTarget:self action:@selector(checkboxClick:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:checkbox11];
    
    
    UIButton *checkbox12 = [UIButton buttonWithType:UIButtonTypeCustom];
    
    checkbox12.frame=CGRectMake(25 ,537,15,15);
    
    [checkbox12 setImage:[UIImage imageNamed:@"fang未勾选状态1@2x.png"] forState:UIControlStateNormal];
    [checkbox12 setImage:[UIImage imageNamed:@"fang勾选状态1@2x.png"] forState:UIControlStateSelected];
    [checkbox12 addTarget:self action:@selector(checkboxClick:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:checkbox12];
    
    
    
    UIButton *checkbox4 = [UIButton buttonWithType:UIButtonTypeCustom];
    
    checkbox4.frame=CGRectMake(23,613,330,45);
    
    [checkbox4 setImage:[UIImage imageNamed:@"投票@2x.png"] forState:UIControlStateNormal];
    [checkbox4 setImage:[UIImage imageNamed:@"你已投票@2x.png"] forState:UIControlStateSelected];
    [checkbox4 addTarget:self action:@selector(checkboxClick:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:checkbox4];
    
    
    
    
    
}

-(void)checkboxClick:(UIButton *)btn
{
    btn.selected = !btn.selected;
}




- (IBAction)fanhui:(id)sender {
    [self dismissModalViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
